package mt.comm;

import java.io.Serializable;

import mt.Order;

public class ServerSideMessageClass implements ServerSideMessage, Serializable{
	
	private Order clientOrder;
	private String senderNickname;
	private Type messageType;	
	
	public ServerSideMessageClass(Type type, Order clientOrder, String senderNickname){
		this.messageType = type;
		this.clientOrder = clientOrder;
		this.senderNickname = senderNickname;
	}
	
	@Override
	public Type getType() {
		return this.messageType;
	}

	@Override
	public String getSenderNickname() {
		return this.senderNickname;
	}

	@Override
	public Order getOrder() {
		return this.clientOrder;
	}
}
